{php: $lib = R('lib', 'SQL');$arr=SQL("select groupname,keycode from @db_options_group where lib='$lib' and lang='". SYS_LANGUAGE ."'", true);} {if count($arr)>0} {else} {$LANG['options.group_add']} {/if}